//
//  CHCardItemModel.m
//  CHCardView
//
//  Created by yaoxin on 16/10/8.
//  Copyright © 2016年 Charles. All rights reserved.
//

#import "CHCardItemModel.h"

@implementation CHCardItemModel

- (instancetype)initWithDic:(NSDictionary *)dict {
    self = [super init];
    if (self) {
        self.card_name = [NSString stringWithFormat:@"%@",dict[@"card_name"]];
        self.index_pic = [NSString stringWithFormat:@"%@",dict[@"index_pic"]];
        self.cardId = [NSString stringWithFormat:@"%@",dict[@"id"]];
        self.price = [NSString stringWithFormat:@"%@",dict[@"price"]];
        self.goods_type = [NSString stringWithFormat:@"%@",dict[@"goods_type"]];
    }
    return self;
}

@end
